package org.dromara.chicken.service;

import org.dromara.common.mybatis.core.page.PageQuery;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.chicken.domain.ChickenChickIn;

import java.util.Collection;
import java.util.List;

/**
 * 鸡苗采购Service接口
 *
 * @author Mr Lei QQ:235921049
 * @date 2024-06-12
 */
public interface IChickenChickInService {

    /**
     * 查询鸡苗采购
     */
    ChickenChickIn queryById(Long id);

    /**
     * 查询鸡苗采购列表
     */
    TableDataInfo<ChickenChickIn> queryPageList(ChickenChickIn bo, PageQuery pageQuery);

    /**
     * 查询鸡苗采购列表
     */
    List<ChickenChickIn> queryList(ChickenChickIn bo);

    /**
     * 新增鸡苗采购
     */
    Boolean insertByBo(ChickenChickIn bo);

    /**
     * 修改鸡苗采购
     */
    Boolean updateByBo(ChickenChickIn bo);

    /**
     * 校验并批量删除鸡苗采购信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
